import request from '@/utils/request'

// 查询活动投票列表
export function listActivityVote(query) {
  return request({
    url: '/ypp/activityVote/list',
    method: 'get',
    params: query
  })
}

// 查询活动投票详细
export function getActivityVote(id) {
  return request({
    url: '/ypp/activityVote/' + id,
    method: 'get'
  })
}

// 新增活动投票
export function addActivityVote(data) {
  return request({
    url: '/ypp/activityVote',
    method: 'post',
    data: data
  })
}

// 修改活动投票
export function updateActivityVote(data) {
  return request({
    url: '/ypp/activityVote',
    method: 'put',
    data: data
  })
}

// 删除活动投票
export function delActivityVote(id) {
  return request({
    url: '/ypp/activityVote/' + id,
    method: 'delete'
  })
}

// 导出活动投票
export function exportActivityVote(query) {
  return request({
    url: '/ypp/activityVote/export',
    method: 'get',
    params: query
  })
}